home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / SourceCode / MiscKit1.7.1 / MiscKit / Palettes / MiscClipTextPalette / MiscClipText.subproj / MiscClipTextField.h < prev    next >
Encoding:
Text File  |  1995-07-13  |  1.2 KB  |  56 lines

  1. //
  2. //    MiscClipTextField.h -- a TextField subclass for displaying long string 
  3. //                           values
  4. //        Written and Copyright (c) 1995 by Balazs Pataki. 
  5. //                Version 1.0.  All rights reserved.
  6. //
  7. //        This notice may not be removed from this source code.
  8. //
  9. //    This object is included in the MiscKit by permission from the author
  10. //    and its use is governed by the MiscKit license, found in the file
  11. //    "LICENSE.rtf" in the MiscKit distribution.  Please refer to that file
  12. //    for a list of all applicable permissions and restrictions.
  13. //    
  14.  
  15. #import <appkit/TextField.h>
  16.  
  17. @interface MiscClipTextField : TextField
  18.  
  19. {
  20.     int origAlignment;
  21. }
  22.  
  23. + setCellClass:classId;
  24.  
  25. - initFrame:(const NXRect *)rect;    
  26.  
  27. - setStringValue:(const char*)stringValue;
  28. - resetStringValue:sender;
  29.  
  30. - setAlignment:(int)align;
  31. - setClipEnabled:(BOOL)flag;
  32. - setClipOnRight:(BOOL)flag;
  33. - setClipperString:(const char*)aString;
  34. - setClipDelimiters:(const char*)delimiters;
  35.  
  36. - sizeTo:(NXCoord)width :(NXCoord)height;
  37. - mouseDown:(NXEvent *)event;
  38.  
  39. - (const char*)fullStringValue;
  40. - clipper;
  41. - delimiters;
  42. - (BOOL) doesClipOnRight;
  43. - (BOOL) isClipEnabled;
  44.  
  45. @end
  46.  
  47.  
  48. @interface MiscClipTextField(IBStuff)
  49. - (const char *)getInspectorClassName;
  50. @end
  51.  
  52.  
  53. @interface MiscClipTextField(Test)
  54. - changeFont:sender;
  55. @end
  56.